<?php



class LORESWAPLIST extends loresewap {
    
    private $firstRow;
    private $rowsNum;
    
    public function __construct () {        
        $p = intval(is_numeric($_GET['dp']) ? $_GET['dp'] : DEFAULT_PAGE);
        $this->rowsNum = DEFAULT_LIMIT;
        $this->firstRow = $this->rowsNum * ($p - 1);
        parent::__construct();
    }

    static function index () {
        $sSql = 'select * form loreswap_list limit '.$this->firstRow.' , '.$this->rowsNum;
        $data = $this->db->query( $sSql );
        $this->themes->setData( $data );
        $this->themes->display();
    }
}